From: Stefan Monnier Date: Tue, 27 Jul 2004 18:45:41 +0000 (+0000) Subject: (font-lock-keywords): Docstring improvement. X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1~1^2~21523 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=dabc130a4988b85fb67f6087efbe3c3b0e24ccdd;p=emacs.git (font-lock-keywords): Docstring improvement. --- diff --git a/lisp/font-lock.el b/lisp/font-lock.el index 36dac14f6a9..8cb43bc0bd8 100644 --- a/lisp/font-lock.el +++ b/lisp/font-lock.el @@ -358,8 +358,9 @@ Each element in a user-level keywords list should have one of these forms: (eval . FORM) where MATCHER can be either the regexp to search for, or the function name to -call to make the search (called with one argument, the limit of the search) and -return non-nil if it succeeds (and set `match-data' appropriately). +call to make the search (called with one argument, the limit of the search; +it should return non-nil, move point, and set `match-data' appropriately iff +it succeeds; like `re-search-forward' would). MATCHER regexps can be generated via the function `regexp-opt'. FORM is an expression, whose value should be a keyword element, evaluated when